package com.intretech.tj.etc;

import io.smallrye.config.ConfigMapping;
import io.smallrye.config.WithDefault;
import io.smallrye.config.WithName;

@ConfigMapping(prefix = "device.etc")
public interface ETCConfig {

    @WithName("enable")
    @WithDefault("true")
    boolean enable();

    @WithName("address")
    String address();

    @WithName("maximum")
    int maximum();

    @WithName("message")
    @WithDefault("BBFF02%s%s0000000000000000000000000000000000000002FB")
    String message();

    @WithName("topic")
    @WithDefault("device/etc")
    String topic();

    @WithName("event")
    @WithDefault("event/etc")
    String event();

    @WithName("error")
    @WithDefault("error/etc")
    String error();
}
